package com.itheima.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 权限
 */
public class Permission implements Serializable {
    private Integer id;
    private String name; // 权限名称
    private String keyword; // 权限关键字，用于权限控制
    private String description; // 描述
    private String initiateMode;//是否启用
    private String createTime;//创建时间
    private Set<Role> roles = new HashSet<Role>(0);
//    private String initiateMode;
//    private String createTime;

    public Permission() {
    }

    public Permission(Integer id, String name, String keyword, String description, Set<Role> roles, String initiateMode, String createTime) {
        this.id = id;
        this.name = name;
        this.keyword = keyword;
        this.description = description;
        this.roles = roles;
        this.initiateMode = initiateMode;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

//    public String getInitiateMode() {
//        return initiateMode;
//    }
//
//    public void setInitiateMode(String initiateMode) {
//        this.initiateMode = initiateMode;
//    }
//
//    public String getCreateTime() {
//        return createTime;
//    }
//
//    public void setCreateTime(String createTime) {
//        this.createTime = createTime;
//    }
    public String getInitiateMode() {
        return initiateMode;
    }




    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }



    public void setInitiateMode(String initiateMode) {
        this.initiateMode = initiateMode;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
